//
//  CNBBSConst.h
//  BBSModule
//
//  Created by 邓建东 on 2020/5/12.
//  Copyright © 2020 dong. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define kDynamicLinkURL @"hyperlink" // 点击链接
#define kDynamicLinkAtName @"at" //NSString
#define kDynamicLinkText @"text" // 点击文本

// 修改收藏夹名称
extern NSString *const CNMineCollectFolderEditSuccessNotification;

@interface CNViewConst : NSObject

#pragma mark CSDN MD5 加密key
+(NSString *)getCSDNMD5Key;

+(NSString *)getLoginCSDNMD5Key;

+(NSString *)stringFromMD5WithString:(NSString *)string;



+(NSArray *)addAtAttributeWithString:(NSMutableAttributedString *)attributedStr;

+ (NSString *)replaceAtUsername:(NSString *)atString atUserArray:(NSArray *)atUserArray;

+ (NSAttributedString *)_attachmentWithFontSize:(CGFloat)fontSize image:(UIImage *)image shrink:(BOOL)shrink; 

+ (BOOL)canEidtorAction;
///deleted 账号已封杀
///activateAndRisk 待激活且养号
///activate 待激活
///riskControl 养号
///normal 正常账号
+ (id)getActionVC;


/// 是否审核状态
+ (BOOL)csdnIsAudit;
/**
 是否是登录用户
 
 */
+(BOOL)isLoginUserName:(NSString *)userName;

/**
 替换评论中的表情
 
 @param text 评论内容
 @param fount 字号
 @param color 颜色
 @param lineSpacing 行间距
 @return 替换后的字符串
 */
+(NSMutableAttributedString *)processCommentContent:(NSString *)text Fount:(UIFont *)fount Color:(UIColor *)color LineSpacing:(CGFloat)lineSpacing;

/**
 修改论坛返回的body
 
 @param htmlStr html代码
 @param fontSize 字体大小
 @param fitImageSize 图片大小
 @return 返回html
 */
+(NSString *)convertHtmlFromBodyString:(NSString *)htmlStr fontSize:(CGFloat)fontSize fitImageSize:(BOOL)fitImageSize;

+(void)saveCollectionAction;

#pragma mark AB
+ (BOOL)blogBottomShowAB;

+ (NSArray *)qrCodeHostList;


+(NSString *)getCSDNAccessToken;

#pragma mark 登录
+ (BOOL)isLogin;

+ (void)loginOut;

+ (NSString *)auditToken;

+ (NSString *)auditUserToken;

+ (NSString *)userToken;


@end

NS_ASSUME_NONNULL_END
